import moment from 'moment';

export const searchProps1 = [
  {
    type: 'select_input_one',
    value: 'channelId',
    name: '渠道',
    selectOptions: [],
    placeholder: '请选择',
    style: {
      width: '180px',
    },
  },
  {
    type: 'date3',
    value: 'time',
    name: '日期',
    selectOptions: [],
    placeholder: '请选择',
    style: {
      width: '240px',
    },
  },
];
export const searchProps2 = [
  {
    type: 'select_input_one',
    value: 'channelId',
    name: '渠道',
    selectOptions: [],
    placeholder: '请选择',
    style: {
      width: '180px',
    },
  },
  {
    type: 'select_input_tow',
    value: 'productId',
    name: '产品名称',
    selectOptions: [],
    placeholder: '请选择',
    style: {
      width: '180px',
    },
  },
  {
    type: 'input',
    value: 'phone',
    name: '手机号',
    style: {
      width: '180px',
    },
    placeholder: '请输入',
  },
 


  {
    type: 'date3',
    value: 'time',
    name: '日期',
    selectOptions: [],
    placeholder: '请选择',
    style: {
      width: '240px',
    },
  },
];
export const searchProps3 = [
  {
    type: 'select_input_one',
    value: 'channelId',
    name: '渠道',
    selectOptions: [],
    placeholder: '请选择',
    style: {
      width: '180px',
    },
  },
  {
    type: 'select_input_three',
    value: 'institutionId',
    name: '机构名称',
    selectOptions: [],
    placeholder: '请选择',
    style: {
      width: '180px',
    },
  },

  {
    type: 'input',
    value: 'phone',
    name: '手机号',
    style: {
      width: '180px',
    },
    placeholder: '请输入',
  },
  {
    type: 'date3',
    value: 'time',
    name: '日期',
    selectOptions: [],
    placeholder: '请选择',
    style: {
      width: '240px',
    },
  },
];

export const columns1 = [

  {
    dataIndex: 'statisticsDate',
    title: '统计时间',
    ellipsis: true,
    width: 150,
    customRender: (text) => text ? moment(text).format('YYYY-MM-DD') : '/',
  },

  {
    dataIndex: 'channelName',
    title: '渠道名称',
    ellipsis: true,
    width: 150,
    customRender: (text) => text || '/',
  },
  {
    dataIndex: 'channelUv',
    title: 'UV',
    ellipsis: true,
    width: 150,
    customRender: (text) => text || '/',
  },
  {
    dataIndex: 'institutionApply',
    title: '机构进件数量',
    ellipsis: true,
    width: 150,
    customRender: (text) => text || '/',
  },
  {
    dataIndex: 'loanClickNumber',
    title: '唯一点击',
    ellipsis: true,
    width: 150,
    customRender: (text) => text || '/',
  },
  {
    dataIndex: 'registerNumber',
    title: '渠道注册数',
    ellipsis: true,
    width: 150,
    customRender: (text) => text || '/',
  },
  {
    dataIndex: 'percentage',
    title: '注册百分比',
    ellipsis: true,
    width: 150,
    customRender: (text) => text || '/',
  },

 
  {
    dataIndex: 'submitFormNumber',
    title: '完件数',
    ellipsis: true,
    width: 150,
    customRender: (text) => text || '/',
  },
  {
    dataIndex: 'complete',
    title: '完件百分比',
    ellipsis: true,
    width: 150,
    customRender: (text) => text || '/',
  },
];

export const columns2 = [

 

  {
    dataIndex: 'phone',
    title: '手机号',
    ellipsis: true,
    width: 150,
    customRender: (text) => text || '/',
  },
  {
    dataIndex: 'channelName',
    title: '渠道名称',
    ellipsis: true,
    width: 150,
    customRender: (text) => text || '/',
  },
  {
    dataIndex: 'productName',
    title: '产品名称',
    ellipsis: true,
    width: 150,
    customRender: (text) => text || '/',
  },
  {
    dataIndex: 'productPrice',
    title: '产品价格',
    ellipsis: true,
    width: 150,
    customRender: (text) => text || '/',
  },
  {
    dataIndex: 'time',
    title: '推送时间',
    ellipsis: true,
    width: 150,
    customRender: (text) => text || '/',
  },

];
export const columns3 = [

 

  {
    dataIndex: 'phone',
    title: '手机号',
    ellipsis: true,
    width: 150,
    customRender: (text) => text || '/',
  },
  {
    dataIndex: 'channelName',
    title: '渠道名称',
    ellipsis: true,
    width: 150,
    customRender: (text) => text || '/',
  },
  {
    dataIndex: 'productName',
    title: '机构名称',
    ellipsis: true,
    width: 150,
    customRender: (text) => text || '/',
  },
  {
    dataIndex: 'productPrice',
    title: '产品价格',
    ellipsis: true,
    width: 150,
    customRender: (text) => text || '/',
  },
  {
    dataIndex: 'cityName',
    title: '城市名称',
    ellipsis: true,
    width: 150,
    customRender: (text) => text || '/',
  },
  {
    dataIndex: 'time',
    title: '推送时间',
    ellipsis: true,
    width: 150,
    customRender: (text) => text || '/',
  },
];
